﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Domain
{
    /// <summary>
    /// 
    /// </summary>
    public class Product
    {
        [Key]
        public int ProductId { get; set; }
        /// <summary>
        /// 产品代码
        /// </summary>
        public string ProductCode { get; set; }
        /// <summary>
        /// 食物Id
        /// </summary>
        public int FoodId { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        public string ProductionBatch { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int ShelfLife { get; set; }
        public string LicenseNumber { get; set; }
        public string Enterprise { get; set; }
        public string Creator { get; set; }
        public DateTime CreateTime { get; set; }=DateTime.Now;
        public string Updator { get; set; }
        public DateTime UpdateTime { get; set; } = DateTime.Now;
        public string Deletor { get; set; }
        public DateTime DeleteTime { get; set; } = DateTime.Now;
        public string PhotoUrl { get; set; }
        public bool IsDel { get; set; }

        public Task<IList<Product>> GetAllAsync()
        {
            throw new NotImplementedException();
        }
    }
}
